Class com.symantec.itools.swing.DataElem
All Packages Class Hierarchy This Package Previous Next Index
Class com.symantec.itools.swing.DataElem
Object
|
+----com.symantec.itools.swing.DataElem
- public class DataElem
- extends Object
DataElem custom data type optionally used by the JChart component that allows you to
specify label and color information associated with each data point
- Author:
- Michael Hopkins, Symantec
-
color
-
-
data
-
-
graphColors
-
-
label
-
-
seed
-
-
com.symantec.itools.swing.DataElem()
- Default Constructor
If a color isn't specified, a color is assigned from the color utility vector
-
com.symantec.itools.swing.DataElem(double)
-
-
com.symantec.itools.swing.DataElem(double, String)
-
-
com.symantec.itools.swing.DataElem(double, String, Color)
-
-
getColor()
- gets the color of the current data element
-
getData()
- gets the data of the current data element
-
getLabel()
- gets the label of the current data element
-
setColor(Color)
- sets the color of current data element
-
setData(double)
- sets the data of current data element
-
setLabel(String)
- sets the label of current data element
color
protected java.awt.Color color
data
protected double data
graphColors
public static java.util.Vector graphColors
label
protected java.lang.String label
seed
protected static int seed
DataElem
public DataElem()
- Default Constructor
If a color isn't specified, a color is assigned from the color utility vector
DataElem
public DataElem(double value)
DataElem
public DataElem(double value,
String s)
DataElem
public DataElem(double value,
String s,
Color c)
getColor
public java.awt.Color getColor()
- gets the color of the current data element
- Returns:
- color associated with the element
- See Also:
- setColor
getData
public double getData()
- gets the data of the current data element
- Returns:
- data (double) associated with the element
- See Also:
- setData
getLabel
public java.lang.String getLabel()
- gets the label of the current data element
- Returns:
- label associated with the element
- See Also:
- setLabel
setColor
public void setColor(Color c)
- sets the color of current data element
- Parameters:
- c - color to be used for the given data point
- See Also:
- getColor
setData
public void setData(double value)
- sets the data of current data element
- Parameters:
- value - double to be used for the given data point
- See Also:
- getData
setLabel
public void setLabel(String s)
- sets the label of current data element
- Parameters:
- s - String to be used for the given data point
- See Also:
- getLabel
All Packages Class Hierarchy This Package Previous Next Index